package edu.cuit.avatar.pojo;

import edu.cuit.avatar.enums.Gender;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author <a href="mailto:1020zhaodan@163.com">Adan</a>
 * @version 1.0
 * @date 2025/7/28 10:53
 */
@Setter
@Getter
@ToString(exclude = "studentCard")
@Accessors(chain = true)
public class Student {

    private String ssn;

    private String name;

    private Gender gender;

    private String tel;

    private Integer depdId;

    private LocalDate birthday;

    private String password;

    /**
     * 学生类别，通过该属性去鉴别不同类型的学生
     *  0：本科生
     *  1：研究生
     */
    private int type;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private StudentCard studentCard;

    /**
     * 关联关系: 多对一
     */
    //private Department department;
}
